//
//  WMWordViewController.m
//  witMorning
//
//  Created by Mac mini on 2018/1/2.
//  Copyright © 2018年 zt. All rights reserved.
//

#import "WMWordViewController.h"
#import "NewsCell.h"
@interface WMWordViewController ()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation WMWordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title = @"消息";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:17],NSForegroundColorAttributeName:[UIColor whiteColor]}];
    UITableView *newsTable = [[UITableView alloc]initWithFrame:CGRectMake(0, 10, SCREEN_W, SCREEN_W) style:UITableViewStylePlain];
    newsTable.delegate = self;
    newsTable.dataSource = self;
    newsTable.separatorStyle = UITableViewCellSeparatorStyleNone;
    newsTable.rowHeight = 100;
    [newsTable registerClass:[NewsCell class] forCellReuseIdentifier:@"NewsCell"];
    [self.view addSubview:newsTable];
}


-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    NewsCell *cell = [tableView dequeueReusableCellWithIdentifier:@"NewsCell"];
    
    return cell;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    [tableView deselectRowAtIndexPath:indexPath animated:YES];

    
}

@end
